package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtChangeDraw;
import com.greyu.ysj.entity.CbtChangeDrawExample;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtChangeDrawMapper {
    long countByExample(CbtChangeDrawExample example);

    int deleteByExample(CbtChangeDrawExample example);

    int insert(CbtChangeDraw record);

    int insertSelective(CbtChangeDraw record);

    List<CbtChangeDraw> selectByExample(CbtChangeDrawExample example);

    int updateByExampleSelective(@Param("record") CbtChangeDraw record, @Param("example") CbtChangeDrawExample example);

    int updateByExample(@Param("record") CbtChangeDraw record, @Param("example") CbtChangeDrawExample example);
    
    double allChange(@Param("coinId")Integer coinId,@Param("startTime")Date startTIme, @Param("endTime")Date endTime);
}